#!/bin/sh

# 复制项目的文件到对应docker路径，便于一键生成镜像。
usage() {
	echo "Usage: sh copy.sh"
	exit 1
}


# copy sql
echo "begin copy sql "
cp ../sql/ry_20240629.sql ./mysql/db
cp ../sql/ry_config_20240902.sql ./mysql/db

# copy html
echo "begin copy html "
cp -r ../byf-ui/dist/** ./nginx/html/dist


# copy jar
echo "begin copy byf-gateway "
cp ../byf-gateway/target/byf-gateway.jar ./byf/gateway/jar

echo "begin copy byf-auth "
cp ../byf-auth/target/byf-auth.jar ./byf/auth/jar

echo "begin copy byf-visual "
cp ../byf-visual/byf-monitor/target/byf-visual-monitor.jar  ./byf/visual/monitor/jar

echo "begin copy byf-modules-system "
cp ../byf-modules/byf-system/target/byf-modules-system.jar ./byf/modules/system/jar

echo "begin copy byf-modules-file "
cp ../byf-modules/byf-file/target/byf-modules-file.jar ./byf/modules/file/jar

echo "begin copy byf-modules-job "
cp ../byf-modules/byf-job/target/byf-modules-job.jar ./byf/modules/job/jar

echo "begin copy byf-modules-gen "
cp ../byf-modules/byf-gen/target/byf-modules-gen.jar ./byf/modules/gen/jar

